const getDictListByType = '/admin/dict/getDictListByType/'
const getBaseAll = '/pbms/arcbase/getBaseAll'
const getAllHouseType = '/pbms/archousetype/getAllHouseType'
export const tableOption = {
  "border": true,
  "index": true,
  "indexLabel": "序号",
  "stripe": true,
  "menuAlign": "center",
  "align": "center",
  "searchMenuSpan": 6,
  "column": [
	  {
      "type": "select",
      "label": "基地",
      "prop": "baseId",
      "span": 12,
      rules: [{
        required: true,
        message: '请选择基地',
        trigger: 'change'
      }],
      "dicUrl": getBaseAll,
      props: {
        label: 'baseName',
        value: 'baseId'
      }
    },	  {
      "type": "input",
      "label": "温室名称",
      "prop": "houseName",
      "span": 12,
      rules: [
        { required: true, message: '温室名称不能为空', trigger: 'blur' },
        { min: 2, max: 60, message: '长度在 2 到 60 个字符', trigger: 'blur' }
      ],
    },	  {
      "type": "select",
      "label": "类型编码",
      "prop": "houseType",
      "span": 12,
      rules: [
        { required: true, message: '温室类型编码不能为空', trigger: 'blur' }
      ],
      "dicUrl": getAllHouseType,
      props: {
        label: 'typeName',
        value: 'houseType'
      }
    },	  {
      "type": "number",
      "label": "排序",
      "prop": "sort",
      "span": 12,
      minRows: 1,
      maxRows: 99,
      rules: [
        { required: true, message: '排序不能为空', trigger: 'blur' }
      ]
    }, {
      "type": "select",
      "label": "温室状态",
      "prop": "status",
      "span": 12,
      'search': true,
      dataType: "number",
      rules: [
        { required: true, message: '请选择温室状态', trigger: 'blur' }
      ],
      "dicUrl": getDictListByType + "arc_house_status",
      props: {
        label: 'label',
        value: 'value',
      }
    }, {
      "type": "input",
      "label": "备注",
      "prop": "remarks",
      "span": 12,
      rules: [
        { max: 120, message: '长度不能超过120 个字符', trigger: 'blur' }
      ],
    },	  {
      "type": "input",
      "label": "创建时间",
      "prop": "createTime",
      editDisplay: false,
      addDisplay: false,
      showClomnu: false,
      hide: true,
      "span": 12
    },	  {
      "type": "input",
      "label": "创建人",
      "prop": "createUser",
      editDisplay: false,
      addDisplay: false,
      showClomnu: false,
      hide: true,
      "span": 12
    },	  {
      "type": "input",
      "label": "修改时间",
      "prop": "updateTime",
      editDisplay: false,
      addDisplay: false,
      showClomnu: false,
      hide: true,
      "span": 12
    },	  {
      "type": "input",
      "label": "修改人",
      "prop": "updateUser",
      editDisplay: false,
      addDisplay: false,
      showClomnu: false,
      hide: true,
      "span": 12
    },	  {
      "type": "input",
      "label": "是否删除",
      "prop": "delFlag",
      editDisplay: false,
      addDisplay: false,
      showClomnu: false,
      hide: true,
      "span": 12
    }  ]
}
